home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Shape Geometry < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.4 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Shape Geometry
  2. Sent:        5/8/96 1:05 PM
  3. Received:    5/8/96 1:11 PM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >We have found a very significant increase in performace if we tell the
  9. >OpenDoc shapes to loose their geometry before performing operations on them
  10. >(as done by the following code example)
  11. >
  12. >   fTextPunchedOutShape = ::FW_NewODShape(ev);
  13. >   fTextPunchedOutShape->SetGeometryMode(ev,kODLoseGeometry);
  14. >
  15. >Is there (or should there be) a way to tell the framework to always default
  16. >new shapes (via FW_NewODShape...) to loose their geometry?
  17. >
  18. >Karl Jepsen
  19.  
  20. We don't have a specific API to do that in ODF. Using the OpenDoc API 
  21. directly works. Note that it is dangerous to use kODLoseGeometry on all 
  22. ODShapes. Persistent shapes like the Frame shape or the used shape should 
  23. not lose their geometry. Using kODLoseGeometry on clip shape is fine and 
  24. I use it now in ODF Release 1. I could add a parameter to FW_NewODShape 
  25. but it should be by default kODDefaultGeometry (I don't remember the 
  26. exact constant).
  27.  
  28. .......................................................................
  29.  Henri Lamiraux                                      lamiraux@apple.com
  30.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  31. .......................................................................
  32.  
  33.